using UnityEngine;

namespace Brick
{
	public class PoolPlayer : MonoBehaviour
	{
		public static GameObject _gameObject;

		public static PoolPlayer _instance;

		public static PoolPlayer Instance
		{
			get
			{
				if (_instance == null)
				{
					_instance = new PoolPlayer();
				}
				return _instance;
			}
			set
			{
				_instance = value;
			}
		}

		public PoolPlayer()
		{
			if (_gameObject == null)
			{
				_gameObject = GameObject.CreatePrimitive(PrimitiveType.Plane);
				_gameObject.name = "[poolnode]";
				Object.DontDestroyOnLoad(_gameObject);
			}
		}

		public Transform GetObj()
		{
			return _gameObject.transform;
		}

		public void OnStart()
		{
		}
	}
}

